
<!doctype html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" th:href="@{/adminLTE/bower_components/bootstrap/dist/css/bootstrap.min.css}">
    <!-- Font Awesome -->
    <link rel="stylesheet" th:href="@{/adminLTE/bower_components/font-awesome/css/font-awesome.min.css}">
    <!-- Ionicons -->
    <link rel="stylesheet" th:href="@{/adminLTE/bower_components/Ionicons/css/ionicons.min.css}">
    <!-- Theme style -->
    <link rel="stylesheet" th:href="@{/adminLTE/dist/css/AdminLTE.min.css}">
    <!-- AdminLTE Skins. We have chosen the skin-blue for this starter
          page. However, you can choose any other skin. Make sure you
          apply the skin class to the body tag so the changes take effect. -->
    <link rel="stylesheet" th:href="@{/adminLTE/dist/css/skins/skin-blue.min.css}">
    <title>标椎地名地址管理系统</title>
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">

    <div th:replace="common/header :: header"></div>

    <div th:replace="common/menu :: menu"></div>

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper" >
        <!-- Content Header (Page header) -->


        <!-- Main content -->
        <section class="content container-fluid">
            <form  th:action="@{/News/add}" method="post" th:object="${news}">
            <div class="box box-info">
                <div class="box-header with-border">
                    <h3 class="box-title">Input Addon</h3>
                </div>
                <div class="box-body">
                    <div class="input-group">
                        <span class="input-group-addon">@</span>

                        <input type="text" class="form-control" placeholder="作者" name="author" th:field="*{newsAuthor}">
                    </div>
                    <br>

                    <div class="input-group">
                        <div class="input-group-btn">
                            <button type="button" class="btn btn-block btn-success btn-sm" >主题</button>
                        </div>
                        <!-- /btn-group -->
                        <input type="text" class="form-control"  name="topic" th:field="*{newsTopic}">
                    </div>

                   <br>

                    <div class="input-group">
                        <div class="input-group-btn">
                            <button type="button" class="btn btn-block btn-info btn-sm">时间</button>
                        </div>
                        <!-- /btn-group -->
                        <input type="text" class="form-control"  name="time" th:field="*{newsTime}">
                    </div>


                    <br>

                    <div class="input-group">
                        <div class="input-group-btn">
                            <button type="button" class="btn btn-block btn-warning btn-sm" >内容</button>
                        </div>

                        <br>

                    </div>
                    <textarea class="form-control" rows="3" placeholder="Enter ..." name="content" th:field="*{content}"></textarea>
                     <br>
                    <div class="input-group">
                        <div class="input-group-btn">
                            <button type="button" class="btn btn-block btn-warning btn-sm">备注</button>
                        </div>
                        <!-- /btn-group -->
                        <input type="text" class="form-control">
                    </div>


                    <br>

                    <div class="input-group input-group-sm">

                        <span class="input-group-btn">
                      <button type="submit" class="btn btn-info btn-flat"  style="width:200px; height:30px;">发布!</button>
                    </span>
                    </div>
                    <!-- /input-group -->
                </div>
                <!-- /.box-body -->
            </div>
            </form>

        </section>
        <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->

    <div th:replace="/common/footer :: footer"></div>



</div>
<!-- ./wrapper -->

<!-- REQUIRED JS SCRIPTS -->

<!-- jQuery 3 -->
<script th:src="@{/adminLTE/bower_components/jquery/dist/jquery.min.js}"></script>
<!-- Bootstrap 3.3.7 -->
<script th:src="@{/adminLTE/bower_components/bootstrap/dist/js/bootstrap.min.js}"></script>
<!-- AdminLTE App -->
<script th:src="@{/adminLTE/dist/js/adminlte.min.js}"></script>

</body>
</html>